import http from "./http";
import qs from "qs";

// 上传图片
export const uploadAdvertisementImg = (params) => {
  return http.post("/sys/uploadAdvertisementImg", params)
}
// 获取图片
export const getAdvertisementImg = (params) => {
  return http.get("/sys/getAdvertisementImg", params)
}
// 上传版本号
export const updatedVersion = (params) => {
  return http.get("/sys/updatedVersion", params)
}
// 获取版本号
export const getAppVersionList = (params) => {
  return http.get("/sys/getAppVersionList", params)
}
// 获取彩种
export const queryLotteryList = (params) => {
  return http.get("/sys/queryLotteryList", params)
}
// 撤单
export const cancelOrder = (params) => {
  return http.post("/sys/cancelOrder", qs.stringify(params))
}
// 获取滑动验证状态
export const getCaptchaOpen = (params) => {
  return http.get("/sys/getCaptchaOpen", params)
}
// 修改滑动验证状态
export const updateCaptchaOpen = (params) => {
  return http.post("/sys/updateCaptchaOpen", qs.stringify(params))
}
// 获取验证码状态
export const getCaptchaOpenNew = (params) => {
  return http.get("/sys/login-validation-option", params)
}
// 修改验证码状态
export const updateCaptchaOpenNew = (params) => {
  return http.put("/sys/login-validation-option", params)
}



// eslint-disable-next-line import/no-anonymous-default-export
export default {
  uploadAdvertisementImg,
  getAdvertisementImg,
  updatedVersion,
  getAppVersionList,
  queryLotteryList,
}